//
//  Result.Array.swift
//  Center
//
//  Created by Flutter on 2021/8/4.
//

import Foundation
import RealmSwift

extension Results {
    func toArray<T>(type: T.Type) -> [T] {
        return compactMap { $0 as? T }
    }
}

